<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">		
		<form class="well form-inline margin-top-20" method="post" action="{:url('Operator/index')}">
		 收银员:
        <input type="text" class="form-control" name="operator" id="operator" style="width: 120px;" value="" placeholder="">		                    
                     时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time" id="start_time" value="{$start_time|default=''}" style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"   id="end_time" value="{$end_time|default=''}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;         
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Operator/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="40">ID</th>
					<th align="left">收银员</th>
					<th align="left">店铺</th>
					<th align="left">销售金额</th>
					<th align="left">付款金额</th>
					<th align="left">优惠金额</th>
					<th align="left">实收金额</th>
					<th align="left">找零金额</th>			
					<th align="left">生成时间</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{:get_operator_data($vo['operatorid'],'user_login')}</td><!-- 店铺 -->
					<td>{:get_store_data($vo['storeid'],'store_name')}</td><!-- 店铺 -->
					<td>{$vo.totalMoney}</td>
					<td>{$vo.actualMoney}</td>
					<td>{$vo.discount}</td>
					<td>{$vo.getMoney}</td>
					<td>{$vo.giveChange}</td>					
					<td>{$vo.ctime|time_format}</td>					
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>		 
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>